From: Jianhui Zhao Date: Tue, 8 Jul 2025 15:47:51 +0000 (+0800) Subject: rtty: update to 9.0.0 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=0858d257e2c67b10193cf858b7e16f7f87864de4;p=feed%2Fpackages.git rtty: update to 9.0.0 Two new command-line parameters have been added since this version: * -g, --group=string Set a group for the device * -i number Set heartbeat interval in seconds changelog: https://github.com/zhaojh329/rtty/releases/tag/v9.0.0 Signed-off-by: Jianhui Zhao --- diff --git a/utils/rtty/Makefile b/utils/rtty/Makefile index 4f1b5cf151..00c375673c 100644 --- a/utils/rtty/Makefile +++ b/utils/rtty/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rtty -PKG_VERSION:=8.1.5 +PKG_VERSION:=9.0.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL=https://github.com/zhaojh329/rtty/releases/download/v$(PKG_VERSION) -PKG_HASH:=b10555e441741dad4baaa7366dfaeef81ea73dfd89fd7c478ecae1ceab74b56a +PKG_HASH:=5137cbe2f58588851376f2e74ded7f570320bd7cfc437d47d2485fb4be5042a1 PKG_MAINTAINER:=Jianhui Zhao PKG_LICENSE:=MIT diff --git a/utils/rtty/files/rtty.config b/utils/rtty/files/rtty.config index d7b83bd42d..69d03eee8b 100644 --- a/utils/rtty/files/rtty.config +++ b/utils/rtty/files/rtty.config @@ -6,6 +6,7 @@ #config rtty # option interface 'lan' # option id 'My-Device' +# option group 'My-Group' # option description 'Description of my device' # option host 'your-server-host' # Server host # option port '5912' # Server Port @@ -13,4 +14,5 @@ # option insecure '1' # Allow insecure server connections when using SSL # option token 'your-token' # generated by rttys # option username 'root' # Skip a second login authentication. See man login(1) about the details +# option heartbeat '30' # Heartbeat interval in seconds(Default is 30s) # option verbose '1' # verbose log diff --git a/utils/rtty/files/rtty.init b/utils/rtty/files/rtty.init index 4725cc158f..dde37bd53e 100644 --- a/utils/rtty/files/rtty.init +++ b/utils/rtty/files/rtty.init @@ -8,7 +8,8 @@ BIN=/usr/sbin/rtty validate_rtty_section() { uci_load_validate rtty rtty "$1" "$2" \ 'interface:uci("network", "@interface"):lan' \ - 'id:maxlength(63)' \ + 'id:maxlength(32)' \ + 'group:maxlength(16)' \ 'description:maxlength(126)' \ 'host:host' \ 'port:port' \ @@ -16,6 +17,7 @@ validate_rtty_section() { 'insecure:bool:0' \ 'token:maxlength(32)' \ 'username:string' \ + 'heartbeat:uinteger' \ 'verbose:bool:0' } @@ -47,12 +49,14 @@ start_rtty() { procd_open_instance procd_set_param command $BIN -h $host -I "$id" -a + [ -n "$group" ] && procd_append_param command -g "$group" [ -n "$port" ] && procd_append_param command -p "$port" [ -n "$description" ] && procd_append_param command -d "$description" [ "$ssl" = "1" ] && procd_append_param command -s [ "$insecure" = "1" ] && procd_append_param command -x [ -n "$token" ] && procd_append_param command -t "$token" [ -n "$username" ] && procd_append_param command -f "$username" + [ -n "$heartbeat" ] && procd_append_param command -i "$heartbeat" [ "$verbose" = "1" ] && procd_append_param command -v procd_set_param respawn procd_close_instance